import request from '@/utils/request'
import { download } from '@/utils/request'

// 新增见面充值套餐
export function addMeet(data) {
  return request({
    url: '/businessCore/faMeetPlan',
    method: 'post',
    data
  })
}

// 修改见面充值套餐
export function updateMeet(data) {
  return request({
    url: '/businessCore/faMeetPlan',
    method: 'put',
    data
  })
}

// 删除见面充值套餐
export function delMeet(id) {
  return request({
    url: '/businessCore/faMeetPlan/' + id,
    method: 'delete'
  })
}
// 导出见面充值套餐
export function exportMeet(params, fileName) {
  const url = '/businessCore/faMeetPlan/export'
  download(
    url,
    params,
    fileName + `_${new Date().getTime()}.xlsx`
  )
}